@extends('layouts.base') @section('content') @parent
<div id="wrapper">
	<div class="main-content container">
		<div class="row small-spacing">
			<div class="col-lg-9 col-xs-9">
				<div class="box-content">
                <h4>单词列表</h4>
                <ul class="list-group margin-top-20">
					@foreach($words as $word)
								<li class="list-group-item"><a href="{{route('word.show',[$slug,$word->word])}}" target="_blank">{{$word->word}}</a> <span style="padding-left:16px">该单词出现了{{$word->showtimes}}次</span></li>
					@endforeach
                  
                    </ul>
			</div>
           {{ $words->links()}}
			<!-- /.box-content -->
		</div>

		<div class="col-md-3">
			<a href="" class="btn btn-danger btn-mail-main btn-block margin-bottom-20 waves-effect waves-light">分类查看</a>
			<div class="box box-solid">
				<div class="box-body">
					<ul class="nav nav-pills nav-stacked">
						@foreach($cats as $cat)
						<li>
							<a href="{{route('word.index',$cat->slug)}}">
								<i class="fa fa-inbox"></i> {{$cat->name}}
								<span class="label-right bg-info pull-right">{{$cat->words()->count()}}</span>
							</a>
						</li>
						@endforeach
					</ul>
				</div>
				<!-- /.box-body -->
			</div>
			<!-- /. box -->
		</div>
		<!-- /.col-lg-4 col-xs-12 -->
	</div>
	<!-- /.row small-spacing -->
</div>
<!-- /.main-content -->
</div>
<!--/#wrapper -->


@endsection
